/**
 * 配置编译环境和线上环境之间的切换
 *
 * baseUrl: 域名地址
 * routerMode: 路由模式
 * baseImgPath: 图片存放地址
 *
 */
let baseUrl = '/api';
let routerMode = 'hash';
let baseImgPath = '';
let websocketUrl = '//book.fangwei6.com';

if (process.env.NODE_ENV == 'development') {
  baseUrl = '//localhost:8080/api';
  baseImgPath = '//localhost:8080';
   //baseUrl = '//qc.fangwei6.com/api';
    //baseImgPath = '//qc.fangwei6.com';
  //websocketUrl = '//qc.fangwei6.com';
}else{
  //baseImgPath = '//book.static.fangwei6.com';//七牛云加速
  baseImgPath = '//book.fangwei6.com';//七牛云加速
  baseUrl = '//book.fangwei6.com/api';
  websocketUrl = '//book.fangwei6.com';
}

// baseUrl = '//xyy.fangwei6.com/api';
// baseImgPath = '//xyy.fangwei6.com/api';

export {
	baseUrl,
	routerMode,
	baseImgPath,
  websocketUrl
}
